home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _AA241CA9568845309101AC50F15F5154 < prev    next >
Encoding:
Text File  |  2006-08-04  |  1.1 KB  |  37 lines

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': u'Jasc Software, Inc.',
  6.         'Copyright': u'Copyright (c) 2003-2004 Jasc Software, Inc.  All rights reserved.',
  7.         'Description': '',
  8.         'Host': u'Paint Shop Pro',
  9.         'Host Version': u'8.00'
  10.         }
  11.  
  12. def Swatch_SetMaterial():
  13.     return {
  14.         'IsPrimary': App.Constants.Boolean.true, 
  15.         'NewMaterial': {
  16.             'Color': None, 
  17.             'Pattern': None, 
  18.             'Gradient': {
  19.                 'Name': 'Corel_06_011', 
  20.                 'GradientType': App.Constants.GradientType.Linear, 
  21.                 'Angle': 0.000000, 
  22.                 'RepeatCount': 0, 
  23.                 'RepeatType': App.Constants.RepeatType.Pad, 
  24.                 'ColorStops': None, 
  25.                 'TransparencyStops': [], 
  26.                 'CenterPoint': None, 
  27.                 'FocalPoint': None, 
  28.                 'Invert': App.Constants.Boolean.false
  29.                 }, 
  30.             'Texture': None
  31.             }
  32.         }
  33.  
  34. def Do(Environment):
  35.     App.Do( Environment, 'SetMaterial',         Swatch_SetMaterial())
  36.  
  37.